<extend name="Layout/index" />
<block name="breadcrumb-01">
	<li>
		<i class="icon-home home-icon"></i>
		<a href="#">首页</a>
	</li>
	<li class="active">分类管理</li>
</block>

<block name="breadcrumb-02">
	<h1>
		帖子管理
		<small>
			<i class="icon-double-angle-right"></i>
			 所有帖子
		</small>
	</h1>
	<form action="<{:U('BBSinvit/index')}>" method="get" >
			<div class="col-lg-4">
				<input type="text" class="form-control input-sm" name="intitle" placeholder="请输入要查询的帖子名">
			</div>
			<input type="submit" class="btn btn-primary btn-xs" value="查询" >
		</form>
</block>
<block name='main'>
		
		<table class="table table-striped table-bordered table-hover">
			<thead>
			 <tr>
				<th>序列号</th>
				<th>inid</th>
				<th>帖子标题</th>
				<th>uid</th>
				<th>操作</th>
			 </tr>
			</thead>
			<tbody>
			<volist name="data" id="vo" key="k">
				<tr>
					<td><{$k}></td>
					<td><{$vo.inid}></td>
					<td>《 <{$vo.intitle}> 》</td>
					<td><{$vo.uid}></td>
					<th>
						<button class="btnDe btn btn-xs btn-danger" value="<{$vo.inid}>">删除</button>
					</th>
				</tr>
			</volist>
			</tbody>
		</table>


		<{$page}>



		<script type="text/javascript" src="__PUBLIC__/Admin/Js/jquery-2.1.4.min.js"></script>
		<script>
			$(function(){
				$('.btnDe').click(function(){
					var inid = $(this).val();
					_this = $(this).parent('th').parent('tr');
					$.ajax({
						type:'GET',
						url:"<{:U('BBSinvit/del')}>",
						data:'inid='+inid,
						async:false,
						success:function(data){
							_this.hide();
						},
					})
				})
			})
		</script>
</block>